import { createSlice } from "@reduxjs/toolkit";

const slice = createSlice({
    name: '/detail',
    initialState:{
        detailInfo: null // 某个房间详情数据
    },
    reducers:{
        changeDetailInfoAction(state, {payload}){
            state.detailInfo = payload
        }
    }
})

export const {changeDetailInfoAction} = slice.actions
export default slice.reducer